home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / Graphic Elements 2 / Extras / GUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-25  |  1.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     GUtilities.h
  3.     
  4.     General-purpose utility routines
  5.     
  6. */
  7.  
  8. #ifndef GUTIL
  9. #define GUTIL
  10.  
  11. #ifdef applec
  12. #ifndef PRELOAD
  13. #pragma load "::ToolKit.precompile"
  14. #define PRELOAD
  15. #endif
  16. #else
  17. #include <Packages.h>
  18. #endif
  19.  
  20. //Are we using the new headers?
  21. #if defined(__CONDITIONALMACROS__)
  22. #define NEWHEADERS 1
  23. #else
  24. #define NEWHEADERS 0
  25. #endif
  26.  
  27. #define    mApple                    128        /* Apple menu */
  28. #define rUserAlert                129        /* General purpose note alert */
  29.  
  30. //Globals set by InitSystem
  31.  
  32. extern Str255        gAppName;
  33. extern OSType        gSignature;
  34. extern short        gAppResRef;
  35. extern Boolean        gInBackground;
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41.  
  42. //Init QD, Fonts, Windows, etc. and call MoreMasters mbCount times
  43. void InitSystem( short mbCount );
  44.  
  45.  
  46. //Loads menubar specified by mBarNum, adds DAs to Apple menu, displays menubar
  47. Boolean LoadMenus( short mBarNum );
  48.  
  49. void TellUser(Str255 what, short errNum);
  50.  
  51. char *C2PStrCpy(char *Cstr, Str255 Pstr);
  52.  
  53. Boolean GetOpenFSSpec(SFTypeList *types, short nTypes, FSSpec *fileSpec);
  54.  
  55. Boolean GetSaveFSSpec(SFTypeList *types, FSSpec *fileSpec);
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60.  
  61.  
  62. #endif